Zero alt if unknown. COrrects problem in Topo 3.0 that isn't seen in 4.20d
authorrobertl <robertl>
Sun, 8 Feb 2004 03:38:50 +0000 (03:38 +0000)
committerrobertl <robertl>
Sun, 8 Feb 2004 03:38:50 +0000 (03:38 +0000)
or DR.

mapsend.c

index d4f7d6e60c757fa25aa632a032f2f39cd5f0b34e..1feecd5e87b040d1b0cee1c6fd166b8401e162bb 100644 (file)
--- a/mapsend.c
+++ b/mapsend.c
@@ -360,6 +360,8 @@ mapsend_waypt_pr(const waypoint *waypointp)
        fwrite(&c, 1, 1, mapsend_file_out);
 
        falt = waypointp->altitude;
+       if (falt == unknown_alt)
+               falt = 0;
        my_fwrite8(&falt, mapsend_file_out);
 
        flong = waypointp->longitude;